﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _12_C_中new关键字的四种使用场景
{
    internal class Test2 : Test1
    {
        //隐藏父类字段属性
        new public int age = 2;
        new public string name = "李四";

        public void Show()
        {
            Console.WriteLine(name);
        }
    }
}
